# -*- coding: utf-8 -*-
# @Time    : 2019-01-21 15:25
# @Author  : jerry
# @FileName: user_login.py
# @Software: PyCharm Professional Edition
# @Version : python 3.6.2
from flask import Blueprint, request

from master import auth

user_login = Blueprint('authorization', __name__)


@auth.verify_password
def verify_password(username_or_token, password):
    pass


@user_login.route('login', method=['GET', 'POST'])
def sign(username, password):
    error = None
    if request.method == 'POST':
        username = request.form.get('username')
        password = request.form.get('password')
